]> dgit.raspbian.org Git - gnome-shell.git/commit
switcherPopup: Swap Math.max and Math.min in _scrollToLeft
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 25 Apr 2018 21:56:29 +0000 (23:56 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 26 Feb 2020 22:46:51 +0000 (22:46 +0000)
commit548c41d16415cda72d85a1ca5872f6cbef91072b
tree1fd768daf0081db9ca92bc34c5e73e2c09ff9fee
parent172d21cf506e5fb6f49d4bad344323e289365442
switcherPopup: Swap Math.max and Math.min in _scrollToLeft

Limit the minimum and maximum value to scroll to inside the box to 0 and
the upper limit, for some reason this was done right in _scrollToRight,
but not in _scrollToLeft.

This fixes the behavior of scrolling to the left: Before, scrolling one
item to the left moved the view to the first element of the list (this
can make the selected element invisible in large lists). Instead, scroll
one item to the left, just like scrolling to the right works.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/167
js/ui/switcherPopup.js